package com.sepro.tim.database.DTO;

import java.sql.Date;
import java.sql.Time;


public class DTO_Task {
	
	private String gTaskID;
	private String gTaskName;
	private String gTaskDescription;
	private String gParentID;
	private Date gTaskDate;
	private String gTaskAvatar;
	private Time gTaskStartTime;
	private int gTaskLongTime;
	private String gTaskStatus;
	private int gTaskPriority;
	private String gTaskType;
		
	public DTO_Task() {
		
		gTaskID = null;
		gTaskName = null;
		gTaskDescription = null;
		gParentID = null;
		gTaskDate = null;
		gTaskType = null;
		gTaskAvatar = null;
		gTaskStartTime = null;
		gTaskLongTime = 0;
		gTaskStatus = null;
		gTaskPriority = 1;
		
	}
	
	public DTO_Task(String mTaskID, String mTaskName, String mTaskDescription,
			String mParentID, Date mTaskDate, String mTaskType, String mTaskAvatar,
			Time mTaskStartTime, int mTaskLongTime, String mTaskStatus,
			int mTaskPriority){
		
		this.gTaskID = mTaskID;
		this.gTaskName = mTaskName;
		this.gTaskDescription = mTaskDescription;
		this.gParentID = mParentID;
		this.gTaskDate = mTaskDate;
		this.gTaskType = mTaskType;
		this.gTaskAvatar = mTaskAvatar;
		this.gTaskStartTime = mTaskStartTime;
		this.gTaskLongTime = mTaskLongTime;
		this.gTaskStatus = mTaskStatus;
		this.gTaskPriority = mTaskPriority;
		
	}
	
	public String getgTaskID() {
		return gTaskID;
	}
	public void setgTaskID(String gTaskID) {
		this.gTaskID = gTaskID;
	}
	public String getgTaskName() {
		return gTaskName;
	}
	public void setgTaskName(String gTaskName) {
		this.gTaskName = gTaskName;
	}
	public String getgTaskDescription() {
		return gTaskDescription;
	}
	public void setgTaskDescription(String gTaskDescription) {
		this.gTaskDescription = gTaskDescription;
	}
	public String getgParentID() {
		return gParentID;
	}
	public void setgParentID(String gParentID) {
		this.gParentID = gParentID;
	}
	public Date getgTaskDate() {
		return gTaskDate;
	}
	public void setgTaskDate(Date gTaskDate) {
		this.gTaskDate = gTaskDate;
	}
	public String getgTaskType() {
		return gTaskType;
	}
	public void setgTaskType(String gTaskType) {
		this.gTaskType = gTaskType;
	}
	public String getgTaskAvatar() {
		return gTaskAvatar;
	}
	public void setgTaskAvatar(String gTaskAvatar) {
		this.gTaskAvatar = gTaskAvatar;
	}
	public Time getgTaskStartTime() {
		return gTaskStartTime;
	}
	public void setgTaskStartTime(Time gTaskStartTime) {
		this.gTaskStartTime = gTaskStartTime;
	}
	public int getgTaskLongTime() {
		return gTaskLongTime;
	}
	public void setgTaskLongTime(int gTaskLongTime) {
		this.gTaskLongTime = gTaskLongTime;
	}
	public String getgTaskStatus() {
		return gTaskStatus;
	}
	public void setgTaskStatus(String gStatus) {
		this.gTaskStatus = gStatus;
	}
	public int getgTaskPriority() {
		return gTaskPriority;
	}
	public void setgTaskPriority(int gPriority) {
		this.gTaskPriority = gPriority;
	}

	@Override
	public String toString() {
		String str = gTaskID.toString().trim() + "\t|";
		str += gTaskName.toString().trim() + "\t|";
		str += gTaskDescription.toString().trim() + "\t|";
		str += gParentID.toString().trim() + "\t|";
		str += gTaskDate.toString().trim() + "\t|";
		str += gTaskStartTime.toString().trim() + "\t|";
		str += String.valueOf(gTaskLongTime) + "\t|";
		str += gTaskAvatar.toString().trim() + "\t|";
		str += gTaskStatus.toString().trim() + "\t|";
		str += gTaskPriority;
		str += gTaskType.toString().trim() + "\t|";
		
		return str;
	}
	
	
}
